package com.ygqh.baby.service;

import java.util.Date;
import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.ao.WholeSaleRecordType;
import com.ygqh.baby.po.YgWholesalerPrebillRecordDetail;

/**
 * @author Ss
 */
public interface YgWholesalerPrebillRecordDetailService {

	List<YgWholesalerPrebillRecordDetail> find();

	int findCount();

	YgWholesalerPrebillRecordDetail findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgWholesalerPrebillRecordDetail ygWholesalerPrebillRecordDetail);

	int update(YgWholesalerPrebillRecordDetail ygWholesalerPrebillRecordDetail);

	int saveOrUpdate(YgWholesalerPrebillRecordDetail ygWholesalerPrebillRecordDetail);

	ResultSet<YgWholesalerPrebillRecordDetail> searchDetail(QueryInfo queryInfo, String wholesalerName, String detailCode,
														   String prebillCode, Date startDate, Date endDate, WholeSaleRecordType recordType);

	void saveBatch(List<YgWholesalerPrebillRecordDetail> prebillRecordDetailList);

	List<YgWholesalerPrebillRecordDetail> findByPrebillCode(String prebillCode);
}
